@zonos/elements 1.3.199 → 1.3.201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-2e3968e9.js → cart-e73cde62.js} +77 -2
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{paypal-b5c80f16.js → paypal-39bbbd1a.js} +1 -1
- package/dist/cjs/zonos-address_11.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +4 -4
- package/dist/cjs/zonos-checkout.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +2 -2
- package/dist/collection/components/store/checkout/stripe.js +17 -2
- package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
- package/dist/collection/components/store/translationStore/strings.base.js +3 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
- package/dist/collection/components/store/translationStore/strings.french.js +3 -0
- package/dist/collection/components/store/translationStore/strings.german.js +3 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
- package/dist/esm/{cart-006b6633.js → cart-f79c8021.js} +77 -2
- package/dist/esm/index.js +7 -7
- package/dist/esm/{paypal-86483f34.js → paypal-6d4667d1.js} +1 -1
- package/dist/esm/zonos-address_11.entry.js +1 -1
- package/dist/esm/zonos-cart-items_13.entry.js +4 -4
- package/dist/esm/zonos-checkout.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +1 -1
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +1 -1
- package/dist/esm/zonos-empty-state-payment_4.entry.js +2 -2
- package/dist/esm/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/cart-f79c8021.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-86483f34.js → paypal-6d4667d1.js} +1 -1
- package/dist/esm-es5/zonos-address_11.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-cd86baf3.entry.js → p-0302a254.entry.js} +1 -1
- package/dist/zonos-elements/{p-63135403.entry.js → p-1998d8b3.entry.js} +1 -1
- package/dist/zonos-elements/{p-76d6ddf4.system.js → p-20030bf5.system.js} +1 -1
- package/dist/zonos-elements/{p-3febb54a.entry.js → p-264f46a5.entry.js} +1 -1
- package/dist/zonos-elements/{p-06547c8c.system.entry.js → p-2c915112.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8558486d.entry.js → p-327aebf5.entry.js} +1 -1
- package/dist/zonos-elements/{p-1383ab6b.entry.js → p-4300d944.entry.js} +1 -1
- package/dist/zonos-elements/{p-bde07ab8.system.entry.js → p-49a31b14.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4cd867d5.js +1 -0
- package/dist/zonos-elements/{p-f57b0170.js → p-5de59662.js} +1 -1
- package/dist/zonos-elements/{p-9350f23a.entry.js → p-65a8f19d.entry.js} +1 -1
- package/dist/zonos-elements/{p-49e78ccc.system.entry.js → p-6cd9b6a1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e5d4705e.system.entry.js → p-7831b52c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7b1e8a42.entry.js → p-79070ee6.entry.js} +1 -1
- package/dist/zonos-elements/{p-c69c3219.system.js → p-7d5d89f2.system.js} +1 -1
- package/dist/zonos-elements/{p-81bf423c.system.entry.js → p-82aa4f9f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-76468d91.system.entry.js → p-8540f3e2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-670d7ffb.system.entry.js → p-932bed54.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0d5fe109.system.entry.js → p-b66b3306.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2abcaaa1.system.entry.js → p-d6c3aec8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-daf73a4c.system.js +1 -0
- package/dist/zonos-elements/{p-c1173557.entry.js → p-de388ea0.entry.js} +1 -1
- package/dist/zonos-elements/{p-a35aab84.entry.js → p-e14d89de.entry.js} +1 -1
- package/dist/zonos-elements/p-ea6d87a1.system.js +1 -1
- package/dist/zonos-elements/{p-ddbeb2ec.entry.js → p-f818bdf5.entry.js} +1 -1
- package/dist/zonos-elements/{p-d319e084.system.entry.js → p-fce6bffe.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-006b6633.js +0 -1
- package/dist/zonos-elements/p-3bcf2091.system.js +0 -1
- package/dist/zonos-elements/p-63bfe67c.js +0 -1
|
@@ -450,6 +450,9 @@ const stringsArabic = {
|
|
|
450
450
|
Shipping: {
|
|
451
451
|
value: 'الشحن',
|
|
452
452
|
},
|
|
453
|
+
'Shipping address': {
|
|
454
|
+
value: 'عنوان الشحن',
|
|
455
|
+
},
|
|
453
456
|
'Shipping address same as billing': {
|
|
454
457
|
value: 'عنوان الشحن مطابق لعنوان الفوترة',
|
|
455
458
|
},
|
|
@@ -1099,6 +1102,9 @@ const stringsBase = {
|
|
|
1099
1102
|
Shipping: {
|
|
1100
1103
|
value: 'Shipping',
|
|
1101
1104
|
},
|
|
1105
|
+
'Shipping address': {
|
|
1106
|
+
value: 'Shipping address',
|
|
1107
|
+
},
|
|
1102
1108
|
'Shipping address same as billing': {
|
|
1103
1109
|
value: 'Shipping address same as billing',
|
|
1104
1110
|
},
|
|
@@ -1748,6 +1754,9 @@ const stringsChinese = {
|
|
|
1748
1754
|
Shipping: {
|
|
1749
1755
|
value: '运输',
|
|
1750
1756
|
},
|
|
1757
|
+
'Shipping address': {
|
|
1758
|
+
value: '送货地址',
|
|
1759
|
+
},
|
|
1751
1760
|
'Shipping address same as billing': {
|
|
1752
1761
|
value: '送货地址与账单地址相同',
|
|
1753
1762
|
},
|
|
@@ -2396,6 +2405,9 @@ const stringsDanish = {
|
|
|
2396
2405
|
Shipping: {
|
|
2397
2406
|
value: 'Levering',
|
|
2398
2407
|
},
|
|
2408
|
+
'Shipping address': {
|
|
2409
|
+
value: 'Leveringsadresse',
|
|
2410
|
+
},
|
|
2399
2411
|
'Shipping address same as billing': {
|
|
2400
2412
|
value: 'Leveringsadresse samme som fakturaadresse',
|
|
2401
2413
|
},
|
|
@@ -3044,6 +3056,9 @@ const stringsDutch = {
|
|
|
3044
3056
|
Shipping: {
|
|
3045
3057
|
value: 'Verzending',
|
|
3046
3058
|
},
|
|
3059
|
+
'Shipping address': {
|
|
3060
|
+
value: 'Verzendadres',
|
|
3061
|
+
},
|
|
3047
3062
|
'Shipping address same as billing': {
|
|
3048
3063
|
value: 'Verzendadres gelijk aan factuuradres',
|
|
3049
3064
|
},
|
|
@@ -3692,6 +3707,9 @@ const stringsFrench = {
|
|
|
3692
3707
|
Shipping: {
|
|
3693
3708
|
value: 'Livraison',
|
|
3694
3709
|
},
|
|
3710
|
+
'Shipping address': {
|
|
3711
|
+
value: 'Adresse de livraison',
|
|
3712
|
+
},
|
|
3695
3713
|
'Shipping address same as billing': {
|
|
3696
3714
|
value: "Adresse de livraison identique à l'adresse de facturation",
|
|
3697
3715
|
},
|
|
@@ -4340,6 +4358,9 @@ const stringsGerman = {
|
|
|
4340
4358
|
Shipping: {
|
|
4341
4359
|
value: 'Versand',
|
|
4342
4360
|
},
|
|
4361
|
+
'Shipping address': {
|
|
4362
|
+
value: 'Lieferadresse',
|
|
4363
|
+
},
|
|
4343
4364
|
'Shipping address same as billing': {
|
|
4344
4365
|
value: 'Lieferadresse wie Rechnungsadresse',
|
|
4345
4366
|
},
|
|
@@ -4988,6 +5009,9 @@ const stringsHebrew = {
|
|
|
4988
5009
|
Shipping: {
|
|
4989
5010
|
value: 'משלוח',
|
|
4990
5011
|
},
|
|
5012
|
+
'Shipping address': {
|
|
5013
|
+
value: 'כתובת למשלוח',
|
|
5014
|
+
},
|
|
4991
5015
|
'Shipping address same as billing': {
|
|
4992
5016
|
value: 'כתובת המשלוח זהה לכתובת החיוב',
|
|
4993
5017
|
},
|
|
@@ -5636,6 +5660,9 @@ const stringsIndonesian = {
|
|
|
5636
5660
|
Shipping: {
|
|
5637
5661
|
value: 'Pengiriman',
|
|
5638
5662
|
},
|
|
5663
|
+
'Shipping address': {
|
|
5664
|
+
value: 'Alamat pengiriman',
|
|
5665
|
+
},
|
|
5639
5666
|
'Shipping address same as billing': {
|
|
5640
5667
|
value: 'Alamat pengiriman sama dengan alamat penagihan',
|
|
5641
5668
|
},
|
|
@@ -6284,6 +6311,9 @@ const stringsItalian = {
|
|
|
6284
6311
|
Shipping: {
|
|
6285
6312
|
value: 'Spedizione',
|
|
6286
6313
|
},
|
|
6314
|
+
'Shipping address': {
|
|
6315
|
+
value: 'Indirizzo di spedizione',
|
|
6316
|
+
},
|
|
6287
6317
|
'Shipping address same as billing': {
|
|
6288
6318
|
value: 'Indirizzo di spedizione uguale a quello di fatturazione',
|
|
6289
6319
|
},
|
|
@@ -6932,6 +6962,9 @@ const stringsJapanese = {
|
|
|
6932
6962
|
Shipping: {
|
|
6933
6963
|
value: '配送',
|
|
6934
6964
|
},
|
|
6965
|
+
'Shipping address': {
|
|
6966
|
+
value: '配送先住所',
|
|
6967
|
+
},
|
|
6935
6968
|
'Shipping address same as billing': {
|
|
6936
6969
|
value: '送付先住所は請求先住所と同じ',
|
|
6937
6970
|
},
|
|
@@ -7580,6 +7613,9 @@ const stringsKorean = {
|
|
|
7580
7613
|
Shipping: {
|
|
7581
7614
|
value: '배송',
|
|
7582
7615
|
},
|
|
7616
|
+
'Shipping address': {
|
|
7617
|
+
value: '배송 주소',
|
|
7618
|
+
},
|
|
7583
7619
|
'Shipping address same as billing': {
|
|
7584
7620
|
value: '배송 주소와 청구 주소가 동일',
|
|
7585
7621
|
},
|
|
@@ -8228,6 +8264,9 @@ const stringsNorwegian = {
|
|
|
8228
8264
|
Shipping: {
|
|
8229
8265
|
value: 'Frakt',
|
|
8230
8266
|
},
|
|
8267
|
+
'Shipping address': {
|
|
8268
|
+
value: 'Leveringsadresse',
|
|
8269
|
+
},
|
|
8231
8270
|
'Shipping address same as billing': {
|
|
8232
8271
|
value: 'Leveringsadresse samme som fakturaadresse',
|
|
8233
8272
|
},
|
|
@@ -8876,6 +8915,9 @@ const stringsPolish = {
|
|
|
8876
8915
|
Shipping: {
|
|
8877
8916
|
value: 'Wysyłka',
|
|
8878
8917
|
},
|
|
8918
|
+
'Shipping address': {
|
|
8919
|
+
value: 'Adres dostawy',
|
|
8920
|
+
},
|
|
8879
8921
|
'Shipping address same as billing': {
|
|
8880
8922
|
value: 'Adres wysyłki taki sam jak adres rozliczeniowy',
|
|
8881
8923
|
},
|
|
@@ -9524,6 +9566,9 @@ const stringsPortuguese = {
|
|
|
9524
9566
|
Shipping: {
|
|
9525
9567
|
value: 'Frete',
|
|
9526
9568
|
},
|
|
9569
|
+
'Shipping address': {
|
|
9570
|
+
value: 'Endereço de entrega',
|
|
9571
|
+
},
|
|
9527
9572
|
'Shipping address same as billing': {
|
|
9528
9573
|
value: 'Endereço de entrega igual ao de faturação',
|
|
9529
9574
|
},
|
|
@@ -10172,6 +10217,9 @@ const stringsRussian = {
|
|
|
10172
10217
|
Shipping: {
|
|
10173
10218
|
value: 'Доставка',
|
|
10174
10219
|
},
|
|
10220
|
+
'Shipping address': {
|
|
10221
|
+
value: 'Адрес доставки',
|
|
10222
|
+
},
|
|
10175
10223
|
'Shipping address same as billing': {
|
|
10176
10224
|
value: 'Адрес доставки совпадает с платежным адресом',
|
|
10177
10225
|
},
|
|
@@ -10820,6 +10868,9 @@ const stringsSpanish = {
|
|
|
10820
10868
|
Shipping: {
|
|
10821
10869
|
value: 'Envío',
|
|
10822
10870
|
},
|
|
10871
|
+
'Shipping address': {
|
|
10872
|
+
value: 'Dirección de envío',
|
|
10873
|
+
},
|
|
10823
10874
|
'Shipping address same as billing': {
|
|
10824
10875
|
value: 'La dirección de envío es la misma que la de facturación',
|
|
10825
10876
|
},
|
|
@@ -11468,6 +11519,9 @@ const stringsSwedish = {
|
|
|
11468
11519
|
Shipping: {
|
|
11469
11520
|
value: 'Frakt',
|
|
11470
11521
|
},
|
|
11522
|
+
'Shipping address': {
|
|
11523
|
+
value: 'Leveransadress',
|
|
11524
|
+
},
|
|
11471
11525
|
'Shipping address same as billing': {
|
|
11472
11526
|
value: 'Leveransadressen är densamma som fakturaadressen',
|
|
11473
11527
|
},
|
|
@@ -12116,6 +12170,9 @@ const stringsTurkish = {
|
|
|
12116
12170
|
Shipping: {
|
|
12117
12171
|
value: 'Kargo',
|
|
12118
12172
|
},
|
|
12173
|
+
'Shipping address': {
|
|
12174
|
+
value: 'Teslimat adresi',
|
|
12175
|
+
},
|
|
12119
12176
|
'Shipping address same as billing': {
|
|
12120
12177
|
value: 'Teslimat adresi fatura adresi ile aynı',
|
|
12121
12178
|
},
|
|
@@ -12764,6 +12821,9 @@ const stringsVietnamese = {
|
|
|
12764
12821
|
Shipping: {
|
|
12765
12822
|
value: 'Vận chuyển',
|
|
12766
12823
|
},
|
|
12824
|
+
'Shipping address': {
|
|
12825
|
+
value: 'Địa chỉ giao hàng',
|
|
12826
|
+
},
|
|
12767
12827
|
'Shipping address same as billing': {
|
|
12768
12828
|
value: 'Địa chỉ giao hàng giống hệt địa chỉ thanh toán',
|
|
12769
12829
|
},
|
|
@@ -14740,8 +14800,23 @@ const stripeStoreHandleInventoryCheck = async () => {
|
|
|
14740
14800
|
if (typeof onInventoryCheck !== 'function') {
|
|
14741
14801
|
return null;
|
|
14742
14802
|
}
|
|
14743
|
-
|
|
14744
|
-
|
|
14803
|
+
try {
|
|
14804
|
+
const message = await onInventoryCheck({ items: cartStore.items });
|
|
14805
|
+
return message;
|
|
14806
|
+
}
|
|
14807
|
+
catch (err) {
|
|
14808
|
+
const message = err instanceof Error ? err.message : 'Unknown error';
|
|
14809
|
+
void handleFetch.sendErrorLog({
|
|
14810
|
+
endpoint: 'onInventoryCheck',
|
|
14811
|
+
errors: [`cartId: ${window.Zonos.cartId} - ${message}`],
|
|
14812
|
+
metadata: {
|
|
14813
|
+
cartId: window.Zonos.cartId,
|
|
14814
|
+
href: window.location.href,
|
|
14815
|
+
items: cartStore.items,
|
|
14816
|
+
},
|
|
14817
|
+
});
|
|
14818
|
+
throw err;
|
|
14819
|
+
}
|
|
14745
14820
|
};
|
|
14746
14821
|
/**
|
|
14747
14822
|
* Handle inventory check and returns error message if the callback provided.
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -131,7 +131,7 @@ const getZonosQaUrl = () => {
|
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
133
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
134
|
-
const cdnUrl = "https://v1.3.
|
|
134
|
+
const cdnUrl = "https://v1.3.201.js.zonos.com";
|
|
135
135
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
136
136
|
if (!qaUrl &&
|
|
137
137
|
(cdnUrl.includes('test.') ||
|
|
@@ -372,10 +372,10 @@ const zonosLoadUrl = (() => {
|
|
|
372
372
|
}
|
|
373
373
|
return null;
|
|
374
374
|
})();
|
|
375
|
-
const ZONOS_URL = "https://v1.3.
|
|
376
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
377
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
378
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
375
|
+
const ZONOS_URL = "https://v1.3.201.js.zonos.com";
|
|
376
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.201";
|
|
377
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.201";
|
|
378
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.201";
|
|
379
379
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
380
380
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
381
381
|
class Zonos {
|
|
@@ -393,7 +393,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
|
|
|
393
393
|
? new URLSearchParams(window.location.search).get('iframeLogType')
|
|
394
394
|
: null;
|
|
395
395
|
Zonos.isBigCommerce = false;
|
|
396
|
-
Zonos.releaseDate = "
|
|
396
|
+
Zonos.releaseDate = "1747060228170";
|
|
397
397
|
Zonos.isLegacyCheckout = false;
|
|
398
398
|
Zonos.domain = typeof window !== 'undefined'
|
|
399
399
|
? // domain that embeds the iframe
|
|
@@ -411,7 +411,7 @@ Zonos.isNpm = true;
|
|
|
411
411
|
Zonos.zonosQaUrl = null;
|
|
412
412
|
Zonos.zonosQaUrlApi = null;
|
|
413
413
|
Zonos.trackEventLogs = [];
|
|
414
|
-
Zonos.version = `v${"1.3.
|
|
414
|
+
Zonos.version = `v${"1.3.201"}`;
|
|
415
415
|
Zonos.modeAlerted = false;
|
|
416
416
|
Zonos.cartData = null;
|
|
417
417
|
Zonos.paypal = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-c466b127.js');
|
|
4
|
-
const cart = require('./cart-
|
|
4
|
+
const cart = require('./cart-e73cde62.js');
|
|
5
5
|
const handleFetch = require('./handleFetch-969d05d8.js');
|
|
6
6
|
const isDarkColor = require('./isDarkColor-92a10a85.js');
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-e73cde62.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-c466b127.js');
|
|
8
8
|
const handleFetch = require('./handleFetch-969d05d8.js');
|
|
9
9
|
const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-9b8a8de1.js');
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-e73cde62.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const paypal = require('./paypal-
|
|
8
|
+
const paypal = require('./paypal-39bbbd1a.js');
|
|
9
9
|
const zonosStore = require('./zonosStore-c466b127.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-969d05d8.js');
|
|
11
11
|
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
@@ -2511,10 +2511,10 @@ const ZonosCustomerInfo = class {
|
|
|
2511
2511
|
}
|
|
2512
2512
|
// Render custom address component if the custom address form is enabled
|
|
2513
2513
|
if (shouldUseCustomAddressForm) {
|
|
2514
|
-
return (index.h("zonos-custom-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: cart.translate(type === 'shipping' ? '
|
|
2514
|
+
return (index.h("zonos-custom-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: cart.translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }));
|
|
2515
2515
|
}
|
|
2516
2516
|
// Render Stripe address component by default
|
|
2517
|
-
return (index.h("zonos-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: cart.translate(type === 'shipping' ? '
|
|
2517
|
+
return (index.h("zonos-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: cart.translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }));
|
|
2518
2518
|
};
|
|
2519
2519
|
this.continueLoading = false;
|
|
2520
2520
|
this.submitBtnType = undefined;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
6
|
+
const cart = require('./cart-e73cde62.js');
|
|
7
|
+
const paypal = require('./paypal-39bbbd1a.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-c466b127.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-969d05d8.js');
|
|
10
10
|
const classes = require('./classes-b7918f56.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-e73cde62.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-c466b127.js');
|
|
8
8
|
const getGenericSettingsOverride = require('./getGenericSettingsOverride-c0ca32b9.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-969d05d8.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-e73cde62.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-c466b127.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
require('./handleFetch-969d05d8.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-e73cde62.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-c466b127.js');
|
|
8
8
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
9
9
|
const isDarkColor = require('./isDarkColor-92a10a85.js');
|
|
@@ -6,9 +6,9 @@ const index = require('./index-0993f42d.js');
|
|
|
6
6
|
const zonosStore = require('./zonosStore-c466b127.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
const getBorderRadius = require('./getBorderRadius-3d0a563e.js');
|
|
9
|
-
const cart = require('./cart-
|
|
9
|
+
const cart = require('./cart-e73cde62.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-969d05d8.js');
|
|
11
|
-
const paypal = require('./paypal-
|
|
11
|
+
const paypal = require('./paypal-39bbbd1a.js');
|
|
12
12
|
require('./isDarkColor-92a10a85.js');
|
|
13
13
|
|
|
14
14
|
const PaymentEmptyStateDarkIcon = `<svg width="536" height="200" viewBox="0 0 536 200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-e73cde62.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-c466b127.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
6
|
const debounce = require('./debounce-d393fafe.js');
|
|
7
|
-
const cart = require('./cart-
|
|
7
|
+
const cart = require('./cart-e73cde62.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-c466b127.js');
|
|
9
9
|
const classes = require('./classes-b7918f56.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-969d05d8.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-e73cde62.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-c466b127.js');
|
|
8
8
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
9
|
require('./handleFetch-969d05d8.js');
|
|
@@ -236,10 +236,10 @@ export class ZonosCustomerInfo {
|
|
|
236
236
|
}
|
|
237
237
|
// Render custom address component if the custom address form is enabled
|
|
238
238
|
if (shouldUseCustomAddressForm) {
|
|
239
|
-
return (h("zonos-custom-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translate(type === 'shipping' ? '
|
|
239
|
+
return (h("zonos-custom-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }));
|
|
240
240
|
}
|
|
241
241
|
// Render Stripe address component by default
|
|
242
|
-
return (h("zonos-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translate(type === 'shipping' ? '
|
|
242
|
+
return (h("zonos-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }));
|
|
243
243
|
};
|
|
244
244
|
this.continueLoading = false;
|
|
245
245
|
this.submitBtnType = undefined;
|
|
@@ -465,8 +465,23 @@ const stripeStoreHandleInventoryCheck = async () => {
|
|
|
465
465
|
if (typeof onInventoryCheck !== 'function') {
|
|
466
466
|
return null;
|
|
467
467
|
}
|
|
468
|
-
|
|
469
|
-
|
|
468
|
+
try {
|
|
469
|
+
const message = await onInventoryCheck({ items: cartStore.items });
|
|
470
|
+
return message;
|
|
471
|
+
}
|
|
472
|
+
catch (err) {
|
|
473
|
+
const message = err instanceof Error ? err.message : 'Unknown error';
|
|
474
|
+
void sendErrorLog({
|
|
475
|
+
endpoint: 'onInventoryCheck',
|
|
476
|
+
errors: [`cartId: ${window.Zonos.cartId} - ${message}`],
|
|
477
|
+
metadata: {
|
|
478
|
+
cartId: window.Zonos.cartId,
|
|
479
|
+
href: window.location.href,
|
|
480
|
+
items: cartStore.items,
|
|
481
|
+
},
|
|
482
|
+
});
|
|
483
|
+
throw err;
|
|
484
|
+
}
|
|
470
485
|
};
|
|
471
486
|
/**
|
|
472
487
|
* Handle inventory check and returns error message if the callback provided.
|
|
@@ -443,6 +443,9 @@ export const stringsFrench = {
|
|
|
443
443
|
Shipping: {
|
|
444
444
|
value: 'Livraison',
|
|
445
445
|
},
|
|
446
|
+
'Shipping address': {
|
|
447
|
+
value: 'Adresse de livraison',
|
|
448
|
+
},
|
|
446
449
|
'Shipping address same as billing': {
|
|
447
450
|
value: "Adresse de livraison identique à l'adresse de facturation",
|
|
448
451
|
},
|
|
@@ -443,6 +443,9 @@ export const stringsIndonesian = {
|
|
|
443
443
|
Shipping: {
|
|
444
444
|
value: 'Pengiriman',
|
|
445
445
|
},
|
|
446
|
+
'Shipping address': {
|
|
447
|
+
value: 'Alamat pengiriman',
|
|
448
|
+
},
|
|
446
449
|
'Shipping address same as billing': {
|
|
447
450
|
value: 'Alamat pengiriman sama dengan alamat penagihan',
|
|
448
451
|
},
|
|
@@ -443,6 +443,9 @@ export const stringsItalian = {
|
|
|
443
443
|
Shipping: {
|
|
444
444
|
value: 'Spedizione',
|
|
445
445
|
},
|
|
446
|
+
'Shipping address': {
|
|
447
|
+
value: 'Indirizzo di spedizione',
|
|
448
|
+
},
|
|
446
449
|
'Shipping address same as billing': {
|
|
447
450
|
value: 'Indirizzo di spedizione uguale a quello di fatturazione',
|
|
448
451
|
},
|
|
@@ -443,6 +443,9 @@ export const stringsSpanish = {
|
|
|
443
443
|
Shipping: {
|
|
444
444
|
value: 'Envío',
|
|
445
445
|
},
|
|
446
|
+
'Shipping address': {
|
|
447
|
+
value: 'Dirección de envío',
|
|
448
|
+
},
|
|
446
449
|
'Shipping address same as billing': {
|
|
447
450
|
value: 'La dirección de envío es la misma que la de facturación',
|
|
448
451
|
},
|